package com.tunnel.client.udp;

import com.tunnel.client.config.IpAndPort;

public class UdpData {
	private byte[] dataBytes;//数据包，多个
	private IpAndPort iap;//数据包目的地
	private byte[] senderAddressBytes;
	private byte[] senderPortBytes;

	public UdpData(IpAndPort iap,byte[] senderAddressBytes,byte[] senderPortBytes,byte[] dataBytes) {
		this.iap = iap;
		this.senderAddressBytes = senderAddressBytes;
		this.senderPortBytes = senderPortBytes;
		this.dataBytes = dataBytes;
	}

	public IpAndPort getIpAndPort() {
		return iap;
	}

	public byte[] getSenderAddressBytes() {
		return senderAddressBytes;
	}

	public byte[] getSenderPortBytes() {
		return senderPortBytes;
	}

	public byte[] getDataBytes() {
		return dataBytes;
	}
	
}
